package com.guodi.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述：模型目录表
 * @作者: 郑文彬
 * @日期: 2020-06-17
 */
@Data
@ApiModel(value="模型目录表")
public class ApiMdlModelDir implements Serializable{
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "目录/模型名称")
    private String name;

    @ApiModelProperty(value = "目录编码")
    private String code;

    @ApiModelProperty(value = "类型（1：目录，2：模型）")
    private Integer type;

    @ApiModelProperty(value = "上级目录ID")
    private String parentId;

    @ApiModelProperty(value = "数据类型（MONITOR：监测值，TARGET：目标值，REPORT：上报值）")
    private String dataType;

    @ApiModelProperty(value = "状态（1：启用， 0：禁用）")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "模型ID")
    private String modelId;

    @ApiModelProperty(value = "缩略图地址")
    private String imageUrl;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "机构ID")
    private String orgId;

    @ApiModelProperty(value = "别名")
    private String alias;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    @ApiModelProperty(value = "使用次数")
    @TableField(exist = false)
    private Integer useCount;

    @ApiModelProperty(value = "树等级")
    @TableField(exist = false)
    private Integer treeLevel;

    @ApiModelProperty(value = "子节点")
    @TableField(exist = false)
    private List<ApiMdlModelDir> children;

    @ApiModelProperty(value = "模型数据")
    @TableField(exist = false)
    private com.guodi.model.entity.MdlModel mdlModel = null;

    @ApiModelProperty(value = "模型结果")
    @TableField(exist = false)
    private com.guodi.model.entity.MdlModelResult mdlModelResult = null;

    @ApiModelProperty(value="组件编码")
    @TableField(exist = false)
    private String typeCode;
}
